package com.yan.exceptiontest;

public class Test12 {
    public static void main(String[] args) {
        int[] arr = new int[5];
        int num = 12321;
        int n = num;
        for (int i = 0; i < arr.length; i++) {
            arr[i] = n % 10;
            n  = n / 10;
        }
        if(arr[0] == arr[4] && arr[1] == arr[3]){
            System.out.println(num + "是回文数");
        }else {
            System.out.println(num + "不是回文数");
        }
    }
}
